package NewOrderXmlbean.impl;

import NewOrderXmlbean.Comments;
import java.util.ArrayList;
import java.util.List;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.SchemaType;
import org.apache.xmlbeans.SimpleValue;
import org.apache.xmlbeans.XmlString;
import org.apache.xmlbeans.impl.values.TypeStore;
import org.apache.xmlbeans.impl.values.XmlComplexContentImpl;

public class CommentsImpl extends XmlComplexContentImpl
  implements Comments
{
  private static final QName COMMENT$0 = new QName("", "comment");

  public CommentsImpl(SchemaType paramSchemaType)
  {
    super(paramSchemaType);
  }

  public String[] getCommentArray()
  {
    synchronized (monitor())
    {
      check_orphaned();
      ArrayList localArrayList = new ArrayList();
      get_store().find_all_element_users(COMMENT$0, localArrayList);
      String[] arrayOfString = new String[localArrayList.size()];
      int i = 0;
      int j = localArrayList.size();
      while (i < j)
      {
        arrayOfString[i] = ((SimpleValue)localArrayList.get(i)).getStringValue();
        i++;
      }
      return arrayOfString;
    }
  }

  public String getCommentArray(int paramInt)
  {
    synchronized (monitor())
    {
      check_orphaned();
      SimpleValue localSimpleValue = null;
      localSimpleValue = (SimpleValue)get_store().find_element_user(COMMENT$0, paramInt);
      if (localSimpleValue == null)
        throw new IndexOutOfBoundsException();
      return localSimpleValue.getStringValue();
    }
  }

  public XmlString[] xgetCommentArray()
  {
    synchronized (monitor())
    {
      check_orphaned();
      ArrayList localArrayList = new ArrayList();
      get_store().find_all_element_users(COMMENT$0, localArrayList);
      XmlString[] arrayOfXmlString = new XmlString[localArrayList.size()];
      localArrayList.toArray(arrayOfXmlString);
      return arrayOfXmlString;
    }
  }

  public XmlString xgetCommentArray(int paramInt)
  {
    synchronized (monitor())
    {
      check_orphaned();
      XmlString localXmlString = null;
      localXmlString = (XmlString)get_store().find_element_user(COMMENT$0, paramInt);
      if (localXmlString == null)
        throw new IndexOutOfBoundsException();
      return localXmlString;
    }
  }

  public int sizeOfCommentArray()
  {
    synchronized (monitor())
    {
      check_orphaned();
      return get_store().count_elements(COMMENT$0);
    }
  }

  public void setCommentArray(String[] paramArrayOfString)
  {
    synchronized (monitor())
    {
      check_orphaned();
      arraySetterHelper(paramArrayOfString, COMMENT$0);
    }
  }

  public void setCommentArray(int paramInt, String paramString)
  {
    synchronized (monitor())
    {
      check_orphaned();
      SimpleValue localSimpleValue = null;
      localSimpleValue = (SimpleValue)get_store().find_element_user(COMMENT$0, paramInt);
      if (localSimpleValue == null)
        throw new IndexOutOfBoundsException();
      localSimpleValue.setStringValue(paramString);
    }
  }

  public void xsetCommentArray(XmlString[] paramArrayOfXmlString)
  {
    synchronized (monitor())
    {
      check_orphaned();
      arraySetterHelper(paramArrayOfXmlString, COMMENT$0);
    }
  }

  public void xsetCommentArray(int paramInt, XmlString paramXmlString)
  {
    synchronized (monitor())
    {
      check_orphaned();
      XmlString localXmlString = null;
      localXmlString = (XmlString)get_store().find_element_user(COMMENT$0, paramInt);
      if (localXmlString == null)
        throw new IndexOutOfBoundsException();
      localXmlString.set(paramXmlString);
    }
  }

  public void insertComment(int paramInt, String paramString)
  {
    synchronized (monitor())
    {
      check_orphaned();
      SimpleValue localSimpleValue = (SimpleValue)get_store().insert_element_user(COMMENT$0, paramInt);
      localSimpleValue.setStringValue(paramString);
    }
  }

  public void addComment(String paramString)
  {
    synchronized (monitor())
    {
      check_orphaned();
      SimpleValue localSimpleValue = null;
      localSimpleValue = (SimpleValue)get_store().add_element_user(COMMENT$0);
      localSimpleValue.setStringValue(paramString);
    }
  }

  public XmlString insertNewComment(int paramInt)
  {
    synchronized (monitor())
    {
      check_orphaned();
      XmlString localXmlString = null;
      localXmlString = (XmlString)get_store().insert_element_user(COMMENT$0, paramInt);
      return localXmlString;
    }
  }

  public XmlString addNewComment()
  {
    synchronized (monitor())
    {
      check_orphaned();
      XmlString localXmlString = null;
      localXmlString = (XmlString)get_store().add_element_user(COMMENT$0);
      return localXmlString;
    }
  }

  public void removeComment(int paramInt)
  {
    synchronized (monitor())
    {
      check_orphaned();
      get_store().remove_element(COMMENT$0, paramInt);
    }
  }
}

/* Location:           C:\Users\Administrator\Desktop\奥特百叶窗\Shutter DesignerV3.1\CurtainDesign.jar
 * Qualified Name:     NewOrderXmlbean.impl.CommentsImpl
 * JD-Core Version:    0.6.0
 */